import axios, { Axios } from "axios";
const context = "/deviceservice";
/**
 * 获取 PullTeaData 分页列表
 */
export function getPullTeaDataPagination(data: any) {
  return axios.get(`${context}/pullTeaData/pagination`, { params: data });
}

/**
 * 获取 PullTeaData 所有数据
 */
export function getPullTeaDataAllList(data: any) {
  return axios.get(`${context}/pullTeaData/all`, { params: data });
}

/**
 * 获取 PullTeaData 详情
 */
export function getPullTeaDataDetailById(id: any) {
  return axios.get(`${context}/pullTeaData/${id}`, { params: { id } });
}

/**
 * 新增 PullTeaData
 */
export function addPullTeaData(data: any) {
  return axios.post(`${context}/pullTeaData`, data);
}

/**
 * 修改 PullTeaData
 */
export function updatePullTeaData(data: any) {
  return axios.put(`${context}/pullTeaData`, data);
}

/**
 * 删除 PullTeaData
 */
export function batchRemovePullTeaData(data: any) {
  return axios.post(`${context}/pullTeaData/batchRemove`, data);
}
